package org.linlinjava.litemall.admin.web2.order.resp;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.linlinjava.litemall.db.domain.TGoods;

@ApiModel
public class Dto1 {

    public Dto1() {
    }

    public Dto1(TGoods goods, Integer num) {
        if (goods == null)
            return;
        this.goodsImg = goods.getMainPic();
        this.mainTitle = goods.getMainTitle();
        this.subTitle = goods.getSubTitle();
        this.price = goods.getCurrentPrice().toString();
        this.num = num;
    }

    @ApiModelProperty("图片")
    private String goodsImg;

    @ApiModelProperty("主标题")
    private String mainTitle;

    @ApiModelProperty("子标题")
    private String subTitle;

    @ApiModelProperty("单价")
    private String price;

    @ApiModelProperty("数量")
    private Integer num;

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public String getMainTitle() {
        return mainTitle;
    }

    public void setMainTitle(String mainTitle) {
        this.mainTitle = mainTitle;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
